import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import '@/assets/css/global.css'
import axios from 'axios'
import Moment from 'moment'

axios.defaults.baseURL="/api";

Vue.config.productionTip = false
Vue.use(ElementUI);

Vue.prototype.$http=axios
Vue.filter('datefmt',function (data,formatStr) {
  return Moment(data).format(formatStr);
})
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
